package com.iap.admin.context
{
	import com.iap.common.command.SampleCommand;
	import com.iap.admin.mediator.SampleMediator;
	import com.iap.common.service.ISampleService;
	import com.iap.common.service.SampleService;
	import com.iap.common.signal.SampleRequestSignal;
	import com.iap.admin.view.SampleView;
	import com.iap.admin.view.sample.SampleGridView;
	import com.iap.app.data.AppData;
	import com.iap.app.data.IAppData;
	
	import org.robotlegs.mvcs.SignalContext;
	
	public class SampleContext extends SignalContext
	{
		override public function startup():void
		{
			injector.mapSingletonOf(ISampleService, SampleService);
			injector.mapSingletonOf(IAppData, AppData);
			
			signalCommandMap.mapSignalClass(SampleRequestSignal, SampleCommand);

			mediatorMap.mapView(SampleView, SampleMediator);
		}
	}
}